Home
last modified time | relevance | path

Searched hist:a517e88b (Results 1 – 1 of 1) sorted by relevance

/qemu/
H A Dqemu-nbd.ca517e88b Fri Nov 04 14:51:21 GMT 2011 Paolo Bonzini <pbonzini@redhat.com> qemu-nbd: move client to a thread

This avoids that qemu-nbd uses both forking and threads, which do
not behave well together.

qemu-nbd is already Unix only, and there is no qemu_thread_join,
so for now use pthreads.

Since the parent and child no longer have separate file descriptors,
we can open the NBD device before daemonizing, instead of checking
with access(2) and restricting the open to the client only.

Reported-by: Pierre Riteau <pierre.riteau@irisa.fr>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>